const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
const webpack = require("webpack");
const env = require("./env");

module.exports = merge(common, {
    devtool: "cheap-module-eval-source-map",
    devServer: {
        hot: true,
        contentBase: "public",
        compress: true,
        host: env.HOST || "localhost",
        port: env.PORT || 8080,
        open: false,
        publicPath: "/",
        proxy: {},
    },
    plugins: [new webpack.HotModuleReplacementPlugin()],
});
